package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PatientManageMapper;
import com.ruoyi.system.domain.PatientManage;
import com.ruoyi.system.service.IPatientManageService;

/**
 * 患者信息表Service业务层处理
 * 
 * @author Mr.abc
 * @date 2024-05-30
 */
@Service
public class PatientManageServiceImpl implements IPatientManageService 
{
    @Autowired
    private PatientManageMapper patientManageMapper;

    /**
     * 查询患者信息表
     * 
     * @param patientId 患者信息表主键
     * @return 患者信息表
     */
    @Override
    public PatientManage selectPatientManageByPatientId(Long patientId)
    {
        return patientManageMapper.selectPatientManageByPatientId(patientId);
    }

    /**
     * 查询患者信息表列表
     * 
     * @param patientManage 患者信息表
     * @return 患者信息表
     */
    @Override
    public List<PatientManage> selectPatientManageList(PatientManage patientManage)
    {
        return patientManageMapper.selectPatientManageList(patientManage);
    }

    /**
     * 新增患者信息表
     * 
     * @param patientManage 患者信息表
     * @return 结果
     */
    @Override
    public int insertPatientManage(PatientManage patientManage)
    {
        return patientManageMapper.insertPatientManage(patientManage);
    }

    /**
     * 修改患者信息表
     * 
     * @param patientManage 患者信息表
     * @return 结果
     */
    @Override
    public int updatePatientManage(PatientManage patientManage)
    {
        return patientManageMapper.updatePatientManage(patientManage);
    }

    /**
     * 批量删除患者信息表
     * 
     * @param patientIds 需要删除的患者信息表主键
     * @return 结果
     */
    @Override
    public int deletePatientManageByPatientIds(Long[] patientIds)
    {
        return patientManageMapper.deletePatientManageByPatientIds(patientIds);
    }

    /**
     * 删除患者信息表信息
     * 
     * @param patientId 患者信息表主键
     * @return 结果
     */
    @Override
    public int deletePatientManageByPatientId(Long patientId)
    {
        return patientManageMapper.deletePatientManageByPatientId(patientId);
    }
}
